package com.sali.entity;


import java.util.List;

// 对接real-time-process的每个子config模型，封装处理流程信息
public class ProcessDefinition {

    // 处理流程名称
    private String name;

    // 走当前处理流程的协议类型
    private List<String> protocolType;

    // 处理流程中各个环节的枚举值
    private List<Integer> path;

    // 执行数据处理的线程数
    private Integer threadNum;

    // 中转数据的队列长度
    private Integer queueLen;

    private TextContentExtraction textContentExtraction;


    public static class TextContentExtraction {
        // 是否需要截断
        private boolean needCut;

        // 阶段长度阈值
        private Long cutLength;


        public boolean isNeedCut() {
            return needCut;
        }

        public void setNeedCut(boolean needCut) {
            this.needCut = needCut;
        }

        public Long getCutLength() {
            return cutLength;
        }

        public void setCutLength(Long cutLength) {
            this.cutLength = cutLength;
        }
    }

    public TextContentExtraction getTextContentExtraction() {
        return textContentExtraction;
    }

    public void setTextContentExtraction(TextContentExtraction textContentExtraction) {
        this.textContentExtraction = textContentExtraction;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getProtocolType() {
        return protocolType;
    }

    public void setProtocolType(List<String> protocolType) {
        this.protocolType = protocolType;
    }

    public Integer getThreadNum() {
        return threadNum;
    }

    public void setThreadNum(Integer threadNum) {
        this.threadNum = threadNum;
    }

    public List<Integer> getPath() {
        return path;
    }

    public void setPath(List<Integer> path) {
        this.path = path;
    }

    public Integer getQueueLen() {
        return queueLen;
    }

    public void setQueueLen(Integer queueLen) {
        this.queueLen = queueLen;
    }


}
